import pages from './autoLoad';

export default [
  {
    path: '/',
    component: pages.auth,
    redirect: '/login',
    children: [
      {
        path: 'login',
        component: pages.login,
      },
      {
        path: 'register',
        component: pages.register,
      },
    ],
  },
  {
    meta: { //  别的页面跳转到当前路由的验证
      notice: true,
    },
    path: '/index',
    component: pages.index,
  },
  {
    path: '/personal',
    component: pages.personal,
  },
  {
    path: '/zhuye',
    component: pages.zhuye,
    redirect: '/zhuye/selected',
    children: [
      {
        path: 'selected',
        component: pages.selected,
      },
    ],
  },
  {
    path: '/main',
    component: pages.main,
  },
  {
    path: '/search_goods',
    component: pages.search_goods,
  },
  {
    path: '/fight_buy',
    component: pages.fight_buy,
  },
  {
    path: '/play',
    component: pages.play,
  },
  {
    path: '/my_buy',
    component: pages.my_buy,
  },
  {
    path: '/search',
    component: pages.search,
  },
];
